﻿CREATE TRIGGER Settings_Tracking_Delete
ON [dbo].[Settings] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.Settings_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.Settings_Tracking s JOIN DELETED i
    ON s.[ID] = i.[ID]
END


